<link rel="stylesheet" href="/assets/Kalendae-master/build\kalendae.css"></link>
<script src="/assets/Kalendae-master/build\kalendae.standalone.js"></script>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Desciption')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desciption" class="form-control" name="row[desciption]" type="text" value="{$row.desciption|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="{$row.price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Origin_price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-origin_price" data-rule="required" class="form-control" name="row[origin_price]" type="number" value="{$row.origin_price|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-cate_type" class="control-label col-xs-12 col-sm-2">{:__('Cate_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[cate_type]', ['1'=>__('Fanche'), '2'=>__('Way')],$row['cate_type'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-limit_time" class="control-label col-xs-12 col-sm-2">{:__('Limit_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-limit_time"  class="form-control auto-kal"  data-kal="mode:'multiple'" name="row[limit_time]" value="{$row.limit_time}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status_switch')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-status_switch" type="hidden" name="row[status_switch]" value="{$row.status_switch|htmlentities}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-status_switch" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.status_switch" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>